package bloomers

/**
* Controls the view and methods of the lockout removal provided to admins
*/

class RemoveLockoutController {

    def index() {
        render(view:"index", model:[lockedList:session.user.lockedList])
    }
    
    /**
    * removes the locked user from the locked user list, allowing them to be able to log back in to their account
    */
    
    def removeLockedUser = {
        print "test"
        session.user.lockedList.remove(session.user.lockedList.get(0))
        render(view:"index", model:[lockedList:session.user.lockedList])
    }
}
